package org.ftc.service;

import org.ftc.dao.OpenTimeDao;
import org.ftc.domain.OpenTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OpenTimeService {
	
	@Autowired
	OpenTimeDao openTimeDao;
	@Autowired
	private UsersService usersService;
	
	public OpenTime load(String id) {
		return openTimeDao.load(id);
	}

	public OpenTime get(String id) {
		return openTimeDao.get(id);
	}
	
	public synchronized boolean save(OpenTime entity) {
		return openTimeDao.save(entity);
	}


	public synchronized boolean saveOrUpdate(OpenTime entity) {
		return openTimeDao.saveOrUpdate(entity);
	}

	public synchronized boolean update(OpenTime entity) {
		return openTimeDao.update(entity);
	}

	public synchronized boolean delete(OpenTime entity) {
		return openTimeDao.delete(entity);
	}

	public synchronized boolean delete(String id) {
		return openTimeDao.delete(id);
	}
	
	public long countAll() {
		return openTimeDao.countAll();
	}
	
	
	
}
